package com.wgq.uitest.exp2;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.wgq.uitest.MainActivity;
import com.wgq.uitest.R;

public class Grid extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_grid);

        Button btn1 = (Button) findViewById(R.id.quit);

        //返回
        btn1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(Grid.this, MainActivity.class);
                startActivity(intent);
            }
        });
    }
}
